Add positional argument support to auth logout#4744
Merged
simonfaltum merged 3 commits intomainfrom Mar 16, 2026
Merged
Conversation
Collaborator
|
Commit: 98d42c4
18 interesting tests: 9 SKIP, 7 KNOWN, 2 flaky
Top 20 slowest tests (at least 2 minutes):
|
903150e to
5b2d358
Compare
Co-authored-by: Isaac
5b2d358 to
fcd6882
Compare
mihaimitrea-db
approved these changes
Mar 16, 2026
Co-authored-by: Isaac
rauchy
pushed a commit
that referenced
this pull request
Mar 17, 2026
## Summary - `databricks auth logout` now accepts an optional positional argument that is resolved as a profile name or workspace URL - Resolution order: try as profile name first, then as workspace URL (matching against configured profiles) - When a URL matches multiple profiles, shows an interactive picker (or lists matching profile names in non-interactive mode) - Helpful error messages list available profiles when no match is found ## Examples databricks auth logout myprofile # logs out of "myprofile" databricks auth logout https://x.y.z # resolves host to a profile, logs out ## Test plan New unit tests covering: profile name match, host match (single/multiple), no match, flag conflict, host canonicalization.
deco-sdk-tagging bot
added a commit
that referenced
this pull request
Mar 18, 2026
## Release v0.295.0 ### Notable Changes * Databricks Asset Bundles have been renamed to Declarative Automation Bundles (DABs). This is a non-breaking change; no code or configuration modifications are required. See the [FAQ](https://docs.databricks.com/aws/en/dev-tools/bundles/faqs#why-was-databricks-asset-bundles-renamed-to-declarative-automation-bundles). * Add `bundle.engine` config setting to select the deployment engine (`terraform` or [`direct`](https://docs.databricks.com/aws/en/dev-tools/bundles/direct)). The `bundle.engine` setting takes precedence over the `DATABRICKS_BUNDLE_ENGINE` environment variable. When the configured engine doesn't match existing deployment state, a warning is issued and the existing engine is used ([#4749](#4749), [#4782](#4782)) ### CLI * Add `databricks auth switch` command for setting the default profile ([#4651](#4651)) * Add positional argument support to `auth logout` ([#4744](#4744)) * Strip trailing slash from host in `auth login`, `auth token`, and `configure` commands ([#4633](#4633)) ### Bundles * Standardize `personal_schemas` enum across bundle templates ([#4401](#4401)) * engine/direct: Fix permanent drift on experiment name field ([#4627](#4627)) * engine/direct: Fix permissions state path to match input config schema ([#4703](#4703)) * Add default project name and success message to default-scala template ([#4661](#4661)) * Skip enum validation for unresolved variable references ([#4752](#4752)) * engine/direct: Support references to/from grants ([#4774](#4774))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
databricks auth logoutnow accepts an optional positional argument that is resolved as a profile name or workspace URLExamples
databricks auth logout myprofile # logs out of "myprofile"
databricks auth logout https://x.y.z # resolves host to a profile, logs out
Test plan
New unit tests covering: profile name match, host match (single/multiple), no match, flag conflict, host canonicalization.